let indexs = document.querySelector('.bodys')
let rankBodys = document.querySelector('.rankBody')



let data={key:'value'}
 function rank() {
     indexs.style.display = 'none'
     rankBodys.style.display = 'block'
     fetch('https://www.qimao.com/qimaoapi/api/classify/book-list?channel=a&category1=a&category2=a&words=a&update_time=a&is_vip=a&is_over=a&order=words_num&page=1',{
    method:'GET',
    headers:{
        'Content-Type':'application/json'
    },
    body:JSON.stringify(data)
})
.then(response=>response.json())
.then(result=>console.log(result))
.catch(error=>{
    console.log(error);
})
 }  

 function index(params) {
      indexs.style.display = 'block'
      
     rankBodys.style.display = 'none'
 }

